package com.unitedvision.persistence.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.unitedvision.persistence.domain.CompanyEntity;
import com.unitedvision.persistence.domain.OperatorEntity;

public interface OperatorRepository extends JpaRepository<OperatorEntity, Integer> {
	List<OperatorEntity> findByCompany(CompanyEntity companyEntity);
	List<OperatorEntity> findByCompanyAndNameContaining(CompanyEntity companyEntity, String name);
	OperatorEntity findByCompanyAndName(CompanyEntity companyEntity, String name);
	OperatorEntity findByUsername(String username);
}
